<%@page contentType="text/html; charset=utf-8" %>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/div/common.js"></script>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<title>反馈登记</title>

<script type="text/javascript">

 var currentBackRecordId="";

    function setCurrentBackRecordId(id){
    currentBackRecordId=id;
    }

	function refleshFrame(){
		var url = "${ctx}/customerService_feedbackRecordAction.do?method=findFeedbackRecordPage&dispatchFormId=${dispatchFormId}";
		document.getElementById("backRecordList").src = url;
		var iframe=findFrame("customerDispatchFormList");
		iframe.refleshFrame();
	}

	/**
	*增加反馈登记
	*/
	function addBackRecord(){

	var urll = "${ctx}/customerService_feedbackRecordAction.do?method=checkIsAllowAddFeedback&dispatchFormId=${dispatchFormId}";
	 new Ajax.Request(urll,{method: 'post',onSuccess : function(result){
	 var resultText = result.responseText.strip();
		ajaxSubmitException(resultText);
	var url = "${ctx}/customerService_feedbackRecordAction.do?method=navigateFeedbackRecordAdd&dispatchFormId=${dispatchFormId}";
		top.windowOpen(url, "addBackRecord", "反馈登记", 540, 550,true,"addBackRecord");

		}}
	 );


	}

	/**
	*作废
	*/
	function disannulBackRecord(){
	if(currentBackRecordId == "")
	  {
	   Alert('请选择一条记录!');
	   return false;
	  }

	  var urll = "${ctx}/customerService_feedbackRecordAction.do?method=checkIsAllowSetAsideFeedback&dispatchFormId=${dispatchFormId}&feedbackId="+currentBackRecordId;
	 new Ajax.Request(urll,{method: 'post',onSuccess : function(result){
	 var resultText = result.responseText.strip();
		ajaxSubmitException(resultText);
	var url = "${ctx}/customerService_feedbackRecordAction.do?method=navigateFeedbackRecordDisannul&dispatchFormId=${dispatchFormId}&feedbackRecordId="+currentBackRecordId;
		top.windowOpen(url, "disannulBackRecord", "作废", 270, 410,true,"disannulBackRecord");

		}}
	 );

	}

	/**
	*反馈详细
	*/
	function backRecordDetail(){
	if(currentBackRecordId == "")
	  {
	   Alert('请选择一条记录!');
	   return false;
	  }
	var url = "${ctx}/customerService_feedbackRecordAction.do?method=navigateFeedbackRecordDetail&feedbackRecordId="+currentBackRecordId;
		top.windowOpen(url, "backRecordDetail", "反馈详细", 540, 550,true,"backRecordDetail");

	}


</script>
</head>

<body>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg">
    	<table border="0" cellpadding="0" cellspacing="0">
	      <tr>
	        <td><span class="window_head_intext"><img src="${ctx}/images/ico_Advance.gif" align="absmiddle" />&nbsp;反馈管理</span></td>
	      </tr>
    	</table>
    </td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
<tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td  class="content">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0">
	        <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#BCBFD2" >
	          <tr>
	            <td>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">

    <tr>
      <td class="bg_toolBar">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="35%">&nbsp;</td>
          <td width="65%" align="right"><!--------------------------右边图标01----------------------------------->
            <table border="0" cellpadding="0" cellspacing="0" id="ico1">
              <tr>
              <pms:AuthTag authName="customerService_feedbackRecordAction.do?method=navigateFeedbackRecordAdd">
                <td class="toolbarico"><a href="#" onClick="addBackRecord();"onfocus="this.blur()"><img src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom" alt="反馈登记"/>&nbsp;</a></td>
                </pms:AuthTag>
                <pms:AuthTag authName="customerService_feedbackRecordAction.do?method=navigateFeedbackRecordDisannul">
                <td class="toolbarico"><a href="#" onClick="disannulBackRecord();" onFocus="this.blur()"><img src="${ctx}/images/ico_delete.gif" alt="作 废" width="16" height="16" border="0" align="absbottom" /></a></td>
              </pms:AuthTag>
              </tr>
            </table>
            <!--------------------------右边图标end----------------------------------->          </td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td valign="top">
		<iframe id="backRecordList"  name="backRecordList" height="300px" frameborder="0" border="0" src="${ctx}/customerService_feedbackRecordAction.do?method=findFeedbackRecordPage&dispatchFormId=${dispatchFormId}" width="100%" ></iframe>
      </td>
    </tr>
  </table>

</td>
     </tr>
        </table></td>
    </tr>
  </table>

</td>
  </tr>
  <tr>
    <td colspan="2" class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
        <tr><td><table border="0"  cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
    </table>      </td>
	       <td class="btn_between_space"></td>

          <td class="btn_between_space"></td>
          <td>
          	<table border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td class="buttonOffLeft" id="btn1_31"></td>
                <td class="buttonOffMiddle"
                	id="btn1_32"
                	onClick="windowClose();"
                	onMouseOver="btn_change_over(3)"
                	onMouseOut="btn_change_out(3)"
                	onBlur="btn_change(3)">
                	<img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 关 闭</td>
                <td class="buttonOffRight" id="btn1_33"></td>
              </tr>
          </table></td>
        </tr>
          </table>
      <p>&nbsp;</p></td>
  </tr>
</table>
</div>
</body>
</html>
